package com.ruoyi.youtian.mapper;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.youtian.domain.PointAttribute;
import com.ruoyi.youtian.domain.PointEquipment;

import java.util.List;


/**
 * 监测点属性Mapper接口
 *
 * @author ruoyi
 * @date 2022-09-15
 */
public interface PointAttributeMapper
{
    /**
     * 查询监测点属性
     *
     * @param id 监测点属性主键
     * @return 监测点属性
     */
    public PointAttribute selectPointAttributeById(Long id);

    /**
     * 查询监测点属性列表
     *
     * @param pointAttribute 监测点属性
     * @return 监测点属性集合
     */
    @DataScope(deptAlias = "d")
    public List<PointAttribute> selectPointAttributeList(PointAttribute pointAttribute);

    /**
     * 新增监测点属性
     *
     * @param pointAttribute 监测点属性
     * @return 结果
     */
    public int insertPointAttribute(PointAttribute pointAttribute);

    /**
     * 修改监测点属性
     *
     * @param pointAttribute 监测点属性
     * @return 结果
     */
    public int updatePointAttribute(PointAttribute pointAttribute);

    public int updatePointAttribute1(PointAttribute pointAttribute);

    /**
     * 删除监测点属性
     *
     * @param id 监测点属性主键
     * @return 结果
     */
    public int deletePointAttributeById(Long id);

    /**
     * 批量删除监测点属性
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePointAttributeByIds(Long[] ids);

    /**
     * 移除采集点属性表 pointId
     * @param pointAttribute
     * @return
     */
    public int deletePointAttributeByPointAttribute(PointAttribute pointAttribute);

    public List<PointAttribute> selectPointAttributeBysPointId(String pointid);

    public List<PointEquipment> selectPointEquipmentByPointId(String pointid);

    /**
     * 修改监测点属性
     *
     * @param pointAttribute 监测点属性
     * @return 结果
     */
    public int reoupdatePointAttribute(PointAttribute pointAttribute);
}
